﻿@model Users.Models.LoginModel
@{ ViewBag.Title = "Login";}
<h2>Log In</h2>

@using (Html.BeginForm())
{
    @Html.AntiForgeryToken();
    <input type="hidden" name="returnUrl" value="@ViewBag.returnUrl" />
    <div class="form-group">
        <label>Name</label>
        @Html.TextBoxFor(x => x.Name, new { @class = "form-control" })
    </div>
    <div class="form-group">
        <label>Password</label>
        @Html.PasswordFor(x => x.Password, new { @class = "form-control" })
    </div>
    <div class="form-group">
        @Html.ValidationSummary()
    </div>
    <button class="btn btn-primary" type="submit">Log In</button>
}